#ifndef WIDGET_H
#define WIDGET_H

#include "ui_snakeui.h"
#include "snakelogic.h"
#include <QWidget>

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = 0);
    ~Widget();
protected:
	void paintEvent ( QPaintEvent * e );
	void keyPressEvent ( QKeyEvent * event );
private:
	Ui::Form *m_uiSnake;
	SnakeLogic *m_Snake;
public slots:
	void TimePaint();
	void GameOver();
};

#endif // WIDGET_H
